﻿using AccountControl;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Data;
using System.Collections.Generic;

namespace AccountControlTest
{
    
    
    /// <summary>
    ///This is a test class for DataSaverTest and is intended
    ///to contain all DataSaverTest Unit Tests
    ///</summary>
    [TestClass()]
    public class DataSaverTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for DataSaver Constructor
        ///</summary>
        [TestMethod()]
        public void DataSaverConstructorTest()
        {
            DataSaver target = new DataSaver();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for SaveAccountsInXMLFile
        ///</summary>
        [TestMethod()]
        public void SaveAccountsInXMLFileTest()
        {
            string XMLfileName = string.Empty; // TODO: Initialize to an appropriate value
            DataTable table = null; // TODO: Initialize to an appropriate value
            DataSaver.SaveAccountsInXMLFile(XMLfileName, table);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for SaveArchiveInXMLFile
        ///</summary>
        [TestMethod()]
        public void SaveArchiveInXMLFileTest()
        {
            string XMLfileName = string.Empty; // TODO: Initialize to an appropriate value
            DataTable table = null; // TODO: Initialize to an appropriate value
            DataSaver.SaveArchiveInXMLFile(XMLfileName, table);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for SaveBanksDataInXMLFile
        ///</summary>
        [TestMethod()]
        public void SaveBanksDataInXMLFileTest()
        {
            string XMLfileName = string.Empty; // TODO: Initialize to an appropriate value
            List<string> banks = null; // TODO: Initialize to an appropriate value
            DataSaver.SaveBanksDataInXMLFile(XMLfileName, banks);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for SaveCurrencyDataInXMLFile
        ///</summary>
        [TestMethod()]
        public void SaveCurrencyDataInXMLFileTest()
        {
            string XMLfileName = string.Empty; // TODO: Initialize to an appropriate value
            List<string> currencyData = null; // TODO: Initialize to an appropriate value
            DataSaver.SaveCurrencyDataInXMLFile(XMLfileName, currencyData);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for SaveHistoryInXMLFile
        ///</summary>
        [TestMethod()]
        public void SaveHistoryInXMLFileTest()
        {
            string XMLfileName = string.Empty; // TODO: Initialize to an appropriate value
            DataTable table = null; // TODO: Initialize to an appropriate value
            DataSaver.SaveHistoryInXMLFile(XMLfileName, table);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for SaveOwnersDataInXMLFile
        ///</summary>
        [TestMethod()]
        public void SaveOwnersDataInXMLFileTest()
        {
            string XMLfileName = string.Empty; // TODO: Initialize to an appropriate value
            List<string> owners = null; // TODO: Initialize to an appropriate value
            DataSaver.SaveOwnersDataInXMLFile(XMLfileName, owners);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
    }
}
